project (halley-asio)

include_directories("contrib/asio/include" "include/halley/asio" "../../engine/utils/include" "../../engine/core/include" "../../engine/net/include")

set(SOURCES
    "src/asio_network_api.cpp"
    "src/asio_plugin.cpp"
    "src/asio_tcp_connection.cpp"
    "src/asio_tcp_network_service.cpp"
    "src/asio_udp_connection.cpp"
    "src/asio_udp_network_service.cpp"
    )

set(HEADERS
    "src/asio_network_api.h"
    "src/asio_tcp_connection.h"
    "src/asio_tcp_network_service.h"
    "src/asio_udp_connection.h"
    "src/asio_udp_network_service.h"
    )

assign_source_group(${SOURCES})
assign_source_group(${HEADERS})

add_library (halley-asio ${SOURCES} ${HEADERS})
target_link_libraries(halley-asio halley-engine)